package com.test.web.excel.handler;
import com.alibaba.excel.metadata.CellData;
import com.alibaba.excel.metadata.Head;
import com.alibaba.excel.write.metadata.holder.WriteSheetHolder;
import com.alibaba.excel.write.metadata.holder.WriteTableHolder;
import com.he.core.excle.handler.DefaultCellWriteHandler;
import lombok.extern.slf4j.Slf4j;
import org.apache.poi.ss.usermodel.Cell;

import java.util.List;
/**
 * @author heyanjing
 * date:2020-06-06 2020/6/6:18:50
 */
@Slf4j
public class WzCellWriteHandler extends DefaultCellWriteHandler {
    /**
     * 在单元上的所有操作完成后调用
     */
    @Override
    public void afterCellDispose(WriteSheetHolder writeSheetHolder, WriteTableHolder writeTableHolder, List<CellData> cellDataList, Cell cell, Head head, Integer relativeRowIndex, Boolean isHead) {
        log.error("{} {} {}", cellDataList, cell, head);
    }
}
